﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace Sagacity.NC.Web.BaokaoManager.HighSchool
{
    public partial class BatchTree : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BatchTreePanel();
        }
        public void BatchTreePanel()
        {
            Hashtable hashtable = new Hashtable();
            hashtable.Add("keyId", this.hidkeyId.Value);
            hashtable.Add("keyName", hidkeyname.Value);
            hashtable.Add("keyParent", hidparentid.Value);
           int resourceId = Request.QueryString["ResourceId"] == null ? 0 : int.Parse(Request.QueryString["ResourceId"]);
           this.TreeFormCommon1.resourceId = resourceId;
           Sagacity.Entity.Query.FilterInfo filter = new Sagacity.Entity.Query.FilterInfo("INTSTATE", "=", 0);
           this.TreeFormCommon1.Filters.Add(filter);
            this.TreeFormCommon1.AddFieldS = hashtable;
            this.TreeFormCommon1.CurrentUser = CurrentUser;
            this.TreeFormCommon1.Role = CurrentUser.LoginRole;
            this.TreeFormCommon1.title = "批次信息设置";
            //这个是必要的，用于缓存区分各个模块的树
            this.TreeFormCommon1.TableName = "ee_base_Batch";
        }
    }
}
